package com.kaiwukj.android.ufamily.exception;

public class AppException extends Throwable {
    private int errCode;
    private String errMessage;

    public AppException() {
    }

    public AppException(int code, String message) {
        super(code + ":" + message);
        this.errCode = code;
        errMessage = message;
    }

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getErrMessage() {
        return errMessage;
    }

    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }
}
